import request from '@/utils/request'

const prefix = "/api/sequence"

/** 
 * 获取练习记录
 * @returns
 */
function get() {
	return request({
		url: prefix + '/getRecord' 
	})
}

/**
 * 添加记录
 */
function add(data){
	return request({
		url: prefix + '/addRecord',
		method: 'post',
		data
	})
}

export default {
	add,
	get
}